<?php
$view_right = '<div id="right"><div class="boxright"><div class="title"><span style="background:url(images/icon-right.jpg) left no-repeat">&nbsp; &nbsp; &nbsp; <a href="videos/">Video</a></span></div>';
$videonb = $tc->VideoNoiBat();
while($row_videonb = mysql_fetch_array($videonb)){
	$view_right .= "<div><iframe width='264' height='200' src='{$row_videonb['link_video']}?rel=0' frameborder='0'></iframe></div><p style='line-height:22px; padding-top:5px'><a href='".$tc->link_detail($row_videonb['menu_id']).$row_videonb['name_rewrite'].".html'>{$row_videonb['name']}</a></p><br />";
}
$view_right .= '</div>';

/*$menuright = $tc->menu(0,4);
while($row_menuright = mysql_fetch_array($menuright)){
	if($row_menuright['url_hinh']!='') $urlHinh = $row_menuright['url_hinh']; else $urlHinh = 'icon-thong-tin.jpg';
	$view_right .= "<div class='boxright'><div class='title'><span style='background:url(images/{$urlHinh}) left no-repeat'>&nbsp; &nbsp; &nbsp; {$row_menuright['name']}</span></div>";
	$idMenuRight = $row_menuright['id'];
	$rightsub = $tc->menu($idMenuRight,4);
	while($row_rightsub = mysql_fetch_array($rightsub)){
		$view_right .= "<div class='thongtin'><strong><a href='{$row_rightsub['url']}'>{$row_rightsub['name']}</a></strong></div>";
	}
	$view_right .= "</div>";
}
$view_right .= '</div>';*/

$menuright = $tc->menu(0,4);
while($row_menuright = mysql_fetch_array($menuright)){
	if($row_menuright['url_hinh']!='') $urlHinh = $row_menuright['url_hinh']; else $urlHinh = 'icon-thong-tin.jpg';
	$view_right .= "<div class='boxright'><div class='title'><span style='background:url(images/{$urlHinh}) left no-repeat'>&nbsp; &nbsp; &nbsp; <a href='{$row_menuright['url']}' title='{$row_menuright['title']}'>{$row_menuright['name']}</a></span></div>";
	$item = $tc->NewsEvent($row_menuright['id']);
	while($row_item  = mysql_fetch_array($item)){
		$view_right .= '<div class="boxevent"><a href="'.$row_menuright['url'].$row_item['name_rewrite'].'.html" title="'.$row_item['name'].'"><img src="'.url_detail_thumb_image.$row_item['url_hinh'].'" alt="'.$row_item['name'].'" /><h4>'.$row_item['name'].'</h4></a><div style="clear:both"></div></div>';
	}
	$view_right .= '</div>';
}
echo $view_right.'</div>';